@extends('manager._layouts.default')
 
@section('main')
 
    <h2>Create new category</h2>
 
    {{ Form::open(array('route' => 'manager.productcategories.store')) }}
        {{ Form::hidden('parentid', 0) }}
        <div class="row">
            <div class="row col-lg-12">
                <div class="form-group col-lg-4">
                    <label for="name">Category Name</label>
                    <i class="fa fa-fw fa-question-circle help" data-toggle="popover" data-placement="right" data-trigger="hover" data-content="Lowercase and space-free name of the category" data-container="body"></i>
                    <input type="text" id="name" name="name" value="" class="newproductcategory form-control">
                </div>
                <div class="form-group col-lg-4">
                    <label for="title">Title</label>
                    <i class="fa fa-fw fa-question-circle help" data-toggle="popover" data-placement="right" data-trigger="hover" data-content="This is the friendly name of the category" data-container="body"></i>
                    <input type="text" id="title" name="title" value="" class="form-control">
                </div>
                <div class="form-group col-lg-4">
                    <label for="slug">Slug</label>
                    <i class="fa fa-fw fa-question-circle help" data-toggle="popover" data-placement="right" data-trigger="hover" data-content="This is the friendly URL of the category" data-container="body"></i>
                    <input type="text" id="slug" name="slug" value="" class="form-control">
                </div>
            </div>
            <div class="col-lg-12">
                <div class="form-group">
                      <label for="description">Description</label>
                      <textarea name="description" class="form-control editor"></textarea>
                </div>
            </div>
        </div>

        
        <div class="row">
            <div class="col-lg-12">
                <button type="submit" class="btn btn-primary btn-large">Save</button>
                <a href="{{ URL::route('manager.productcategories.index') }}" class="btn btn-default btn-large">Cancel</a>
            </div>        
            
        </div>
 
    {{ Form::close() }}
 
@stop